.class Lcom/estrongs/android/taskmanager/fm;
.super Ljava/lang/Object;


# instance fields
.field a:I

.field b:I

.field c:Ljava/lang/String;

.field d:Z

.field e:Landroid/widget/SeekBar;

.field f:Landroid/widget/TextView;

.field g:I

.field h:I

.field i:Landroid/widget/SeekBar$OnSeekBarChangeListener;

.field final synthetic j:Lcom/estrongs/android/taskmanager/dp;


# direct methods
.method public constructor <init>(Lcom/estrongs/android/taskmanager/dp;ILjava/lang/String;Landroid/widget/SeekBar;Landroid/widget/TextView;ZI)V
    .locals 1

    iput-object p1, p0, Lcom/estrongs/android/taskmanager/fm;->j:Lcom/estrongs/android/taskmanager/dp;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    new-instance v0, Lcom/estrongs/android/taskmanager/fn;

    invoke-direct {v0, p0}, Lcom/estrongs/android/taskmanager/fn;-><init>(Lcom/estrongs/android/taskmanager/fm;)V

    iput-object v0, p0, Lcom/estrongs/android/taskmanager/fm;->i:Landroid/widget/SeekBar$OnSeekBarChangeListener;

    iput p2, p0, Lcom/estrongs/android/taskmanager/fm;->b:I

    iput-object p3, p0, Lcom/estrongs/android/taskmanager/fm;->c:Ljava/lang/String;

    iput-object p4, p0, Lcom/estrongs/android/taskmanager/fm;->e:Landroid/widget/SeekBar;

    iput-object p5, p0, Lcom/estrongs/android/taskmanager/fm;->f:Landroid/widget/TextView;

    iput-boolean p6, p0, Lcom/estrongs/android/taskmanager/fm;->d:Z

    iput p7, p0, Lcom/estrongs/android/taskmanager/fm;->h:I

    invoke-static {p1}, Lcom/estrongs/android/taskmanager/dp;->a(Lcom/estrongs/android/taskmanager/dp;)Landroid/media/AudioManager;

    move-result-object v0

    invoke-virtual {v0, p2}, Landroid/media/AudioManager;->getStreamMaxVolume(I)I

    move-result v0

    iput v0, p0, Lcom/estrongs/android/taskmanager/fm;->a:I

    iget v0, p0, Lcom/estrongs/android/taskmanager/fm;->a:I

    invoke-virtual {p4, v0}, Landroid/widget/SeekBar;->setMax(I)V

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/fm;->i:Landroid/widget/SeekBar$OnSeekBarChangeListener;

    invoke-virtual {p4, v0}, Landroid/widget/SeekBar;->setOnSeekBarChangeListener(Landroid/widget/SeekBar$OnSeekBarChangeListener;)V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/taskmanager/fm;)Lcom/estrongs/android/taskmanager/dp;
    .locals 1

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/fm;->j:Lcom/estrongs/android/taskmanager/dp;

    return-object v0
.end method


# virtual methods
.method public a()V
    .locals 2

    iget-boolean v0, p0, Lcom/estrongs/android/taskmanager/fm;->d:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/fm;->j:Lcom/estrongs/android/taskmanager/dp;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/dp;->a(Lcom/estrongs/android/taskmanager/dp;)Landroid/media/AudioManager;

    move-result-object v0

    iget v1, p0, Lcom/estrongs/android/taskmanager/fm;->b:I

    invoke-virtual {v0, v1}, Landroid/media/AudioManager;->getStreamVolume(I)I

    move-result v0

    iput v0, p0, Lcom/estrongs/android/taskmanager/fm;->g:I

    :goto_0
    iget v0, p0, Lcom/estrongs/android/taskmanager/fm;->g:I

    invoke-virtual {p0, v0}, Lcom/estrongs/android/taskmanager/fm;->a(I)V

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/fm;->e:Landroid/widget/SeekBar;

    iget v1, p0, Lcom/estrongs/android/taskmanager/fm;->g:I

    invoke-virtual {v0, v1}, Landroid/widget/SeekBar;->setProgress(I)V

    return-void

    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/taskmanager/fm;->j:Lcom/estrongs/android/taskmanager/dp;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/dp;->b(Lcom/estrongs/android/taskmanager/dp;)Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/fm;->c:Ljava/lang/String;

    invoke-static {v0, v1}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/estrongs/android/taskmanager/fm;->g:I

    goto :goto_0
.end method

.method public a(I)V
    .locals 6

    iput p1, p0, Lcom/estrongs/android/taskmanager/fm;->g:I

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/fm;->f:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/fm;->j:Lcom/estrongs/android/taskmanager/dp;

    const v2, 0x7f0700e7

    invoke-virtual {v1, v2}, Lcom/estrongs/android/taskmanager/dp;->getString(I)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    new-array v2, v2, [Ljava/lang/Object;

    const/4 v3, 0x0

    mul-int/lit8 v4, p1, 0x64

    iget v5, p0, Lcom/estrongs/android/taskmanager/fm;->a:I

    div-int/2addr v4, v5

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    aput-object v4, v2, v3

    invoke-static {v1, v2}, Ljava/text/MessageFormat;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method

.method public b()V
    .locals 2

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/fm;->e:Landroid/widget/SeekBar;

    iget v1, p0, Lcom/estrongs/android/taskmanager/fm;->h:I

    invoke-virtual {v0, v1}, Landroid/widget/SeekBar;->setProgress(I)V

    return-void
.end method

.method public c()Z
    .locals 2

    iget v0, p0, Lcom/estrongs/android/taskmanager/fm;->g:I

    iget v1, p0, Lcom/estrongs/android/taskmanager/fm;->h:I

    if-ne v0, v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method
